The Medieval Census Problem